package com.w.wx.service;


import com.w.wx.domain.DTO.GoodsDeDTO;
import com.w.wx.domain.Goods;
import com.w.wx.domain.Notice;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface GoodsService {

    int goodsIssue(Goods goodsInfo);

    int setGoodsState(@Param("gid") Integer gid,@Param("state") Integer state,@Param("reason") String reason);

    ArrayList<Goods> queryByUser(String flag);

    ArrayList<Goods> getSimpleGoods(Integer state,int pageNum ,int pageSize);

    ArrayList<Goods> getMySimpleGoods(String openid,int pageNum ,int pageSize);

    int deleteGoods(Integer gid);

    Notice whyNotGo(Integer gid);

    ArrayList<Goods> getSimFreeGoods(int pageNum ,int pageSize);



    GoodsDeDTO getDeGoodsFwl(Integer gid);

    GoodsDeDTO getDetailByGid(Integer gid);


    int deleteCarGoods(Integer gid);

    ArrayList<Goods> getMyCheckSimGoods(String openid);

    List<Goods> getAllGoodsInfo();

    ArrayList<Goods> getAllSimpleGoods(String openid,Integer state, int pageNum, int pageSize);
}
